package com.tianyiyan.hibernate.user;

import java.util.Calendar;
import java.util.Date;
import java.util.List;
import java.util.TimerTask;

import com.tianyiyan.dao.tyenword.UserDao;

public class ClearUserTask extends TimerTask
{
	private Integer intervalSeconds;
	public ClearUserTask(Integer interval)
	{
		intervalSeconds = interval;
	}
	@Override
	public void run() {
		UserDao dao = new UserDao();
		dao.deleteOverdueUsers(intervalSeconds);
	}
}
